<?php
header("content-type:text/htlm;charset=utf-8");
require_once "shuju.php";
$conn;

$usename = $_POST['username'];
$sex = $_POST['sex'];
$message = $_POST['message'];
$imgurl = $_POST['imgurl'];
$time_at = time();

$sql ="INSERT INTO  `hzk`.`t_message` (
`usename` ,
`sex` ,
`content` ,
`avater` ,
)
VALUES (
NULL, '$usename', '$sex', '$message', '$imgurl','$time_at'
);
";

$result = $conn->query($sql);
header("location:index.php");